﻿using PropertyChanged;
using PropertyChanging;
using WPFTemplateLib.WpfHelpers;

namespace WPFPractice.Models
{
    /// <summary>
    /// 用户类
    /// </summary>
    //[ImplementPropertyChanging] //未成功
    //由于 ImplementPropertyChanging 未成功，这个也不用了。此类改为 普通属性+绑定基类 的形式
    //[AddINotifyPropertyChangedInterface]
    public class User : BindableBase
    {
        private EditTypeEnum _editType = EditTypeEnum.Show;
        public EditTypeEnum EditType { get => _editType; set => SetProperty(ref _editType, value); }

        private string _userId;
        public string UserId { get => _userId; set => SetProperty(ref _userId, value); }

        private string _userName;
        public string UserName { get => _userName; set => SetProperty(ref _userName, value); }

        private string _gender;
        public string Gender { get => _gender; set => SetProperty(ref _gender, value); }

        private int _age = 0;
        public int Age { get => _age; set => SetProperty(ref _age, value); }

        private string _mobileNum;
        public string MobileNum { get => _mobileNum; set => SetProperty(ref _mobileNum, value); }

        private string _address;
        public string Address { get => _address; set => SetProperty(ref _address, value); }

        private string _signature;
        public string Signature { get => _signature; set => SetProperty(ref _signature, value); }
    }
}